Spread Windows Forms 18
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / NamedObjectCollection<T> Class / OnInsert Method
The zero-based index at which to insert the value.
The new value of the element at the index.


In This Topic
    OnInsert Method (NamedObjectCollection<T>)
    In This Topic
    Performs additional custom processes before inserting a new element into the System.Collections.CollectionBase instance.
    Syntax
    'Declaration
     
    
    Protected Overridable Sub OnInsert( _
       ByVal index As Integer, _
       ByVal value As Object _
    ) 
    'Usage
     
    
    Dim instance As NamedObjectCollection(Of T)
    Dim index As Integer
    Dim value As Object
     
    instance.OnInsert(index, value)
    protected virtual void OnInsert( 
       int index,
       object value
    )

    Parameters

    index
    The zero-based index at which to insert the value.
    value
    The new value of the element at the index.
    See Also